package com.IO;

import java.io.*;

public class TestBufferReader {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw = new BufferedWriter(new FileWriter("E:\\testFile\\testnewLine.txt"));
        // 写出数据
        bw.write("我");
        // 写出换行
        bw.newLine();
        bw.write("是");
        bw.newLine();
        bw.write("中国人");
        bw.newLine();
        // 释放资源
        bw.close();
    }
}

    